package org.example.codegenerate.modelext.validateexcep;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
public class WDomainVO {
    private Integer id;

    @NotNull
    @Size(min=5, max=16, message="{username.size}")
    private String username;

    @NotNull
    @Size(min=5, max=25, message="{password.size}")
    private String password;

    @NotNull
    @Size(min=2, max=30, message="{firstName.size}")
    private String firstName;

    @NotBlank(message = "wdomianVo.lastname.notblank")
    //@Size(min=2, max=30, message="{lastName.size}")
    private String lastName;



}
